package orm;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractUser entity provides the base persistence definition of the User
 * entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractUser implements java.io.Serializable {

	// Fields

	private long userid;
	private String username;
	private String pwd;
	private String realname;
	private String email;
	private String phone;
	private Integer qtype;
	private Set courses_tea = new HashSet(0);
	private Set courses_stu = new HashSet(0);
	private Set revises = new HashSet(0);
	private Set takeexams = new HashSet(0);
	private Set msgs = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractUser() {
	}

	/** minimal constructor */
	public AbstractUser(String username, String pwd, Integer qtype) {
		this.username = username;
		this.pwd = pwd;
		this.qtype = qtype;
	}

	/** full constructor */
	public AbstractUser(String username, String pwd, String realname,
			String email, String phone, Integer qtype, Set courses_tea,
			Set courses_stu, Set revises, Set takeexams, Set msgs) {
		this.username = username;
		this.pwd = pwd;
		this.realname = realname;
		this.email = email;
		this.phone = phone;
		this.qtype = qtype;
		this.courses_tea = courses_tea;
		this.courses_stu = courses_stu;
		this.revises = revises;
		this.takeexams = takeexams;
		this.msgs = msgs;
	}

	// Property accessors

	public long getUserid() {
		return this.userid;
	}

	public void setUserid(long userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPwd() {
		return this.pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public Integer getQtype() {
		return this.qtype;
	}

	public void setQtype(Integer qtype) {
		this.qtype = qtype;
	}

	public Set getCourses_tea() {
		return this.courses_tea;
	}

	public void setCourses_tea(Set courses_tea) {
		this.courses_tea = courses_tea;
	}

	public Set getCourses_stu() {
		return this.courses_stu;
	}

	public void setCourses_stu(Set courses_stu) {
		this.courses_stu = courses_stu;
	}

	public Set getRevises() {
		return this.revises;
	}

	public void setRevises(Set revises) {
		this.revises = revises;
	}

	public Set getTakeexams() {
		return this.takeexams;
	}

	public void setTakeexams(Set takeexams) {
		this.takeexams = takeexams;
	}

	public Set getMsgs() {
		return this.msgs;
	}

	public void setMsgs(Set msgs) {
		this.msgs = msgs;
	}

}